import Vue from 'vue'
import Vuex from 'vuex'
// import creatLogger from 'vuex/dist/logger'

Vue.use(Vuex)

import UserInfo from './userInfo'
import Address from './address'
import Order from './order'
import BannerBar from './bannerBar'
import Entering from './entering'
// import SearchGoods from './searchGoods'
import Channel from './channel'
import IndexScroll from './indexScroll'
import TopNav from './topNav'
import HelpCenter from './helpCenter'
import Jmessage from './jmessage'

// const debug = process.env.NODE_ENV !== 'production'

export default new Vuex.Store({
  modules: {
    UserInfo,
    Address,
    Order,
    BannerBar,
    Entering,
    // SearchGoods,
    Channel,
    IndexScroll,
    TopNav,
    HelpCenter,
    Jmessage
  }
  // plugins: debug ? [creatLogger()] : []
})
